package com.cindata

import grails.plugin.springsecurity.SpringSecurityUtils

class MortgageCategoryInterceptor
{
    def springSecurityService

    MortgageCategoryInterceptor()
    {
        // match(controller: "*", action: "*").except(action: "welcome", controller:"main")
    }

    boolean before()
    {
        // def categoryId = params['categoryId']
        // if (categoryId)
        // {
        //     session.categoryId = categoryId
        // }
        // if (!session?.categoryId && !params['categoryId'])
        // {
        //     redirect uri: SpringSecurityUtils.securityConfig.logout.filterProcessesUrl
        //     return false
        // }
        true
    }

    boolean after()
    {
        true
    }

    void afterView()
    {
    }
}